    function countDown(time) {
      var nowTime = new Date();
      var overTime = new Date(time);
      var times = (overTime - nowTime) / 1000;
      var d = parseInt(times / 60 / 60 / 24);       // 天数
      d = d < 10 ? '0' + d : d;
      var h = parseInt(times / 60 / 60 % 24);       // 小时
      h = h < 10 ? '0' + h : h;
      var m = parseInt(times / 60 % 60);            // 分钟
      m = m < 10 ? '0' + m : m;
      var s = parseInt(times % 60);                 // 秒数
      s = s < 10 ? '0' + s : s;
      return d + '天' + h + '时' + m + '分' + s + '秒';
    }
    console.log(countDown('2025-10-1 00:00:00'));

  
    var nowT = new Date()
    var overT = new Date("2028-9-25")
    d = (overT-nowT)/1000
    console.log(parseInt(d/60/60/24));
    console.log(parseInt(d/60/60%24));
    console.log(parseInt(d/60%60));


    
var arr =[1,3,9,2]
arr.sort((m,n)=>{
  console.log(m + "-" +n);
  
   return m-n
})
 
console.log(arr);
